home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Internet
/
Chip Internet.iso
/
viewer
/
qpeg
/
drvsrc
/
tri8900.asm
< prev
next >
Wrap
Assembly Source File
|
1994-05-01
|
687b
|
46 lines
;
; QPEG video driver
; for Trident 8900 and 9000 chipsets
;
.286
Code Segment Para 'Code'
Assume cs:Code
Org 100h
Procs dw Bank,Init,Exit,0
Bank: push ax
mov al,0eh
mov dx,03c4h
out dx,al
inc dx
pop ax
xor al,02h
out dx,al
retf
Init: mov dx,3ceh ; set pagesize to 64k
mov al,6
out dx,al
inc dl
in al,dx
dec dl
or al,4
mov ah,al
mov al,6
out dx,ax
mov dl,0c4h ; switch to BPS mode
mov al,0bh
out dx,al
inc dl
in al,dx
retf
Exit: retf
Code Ends
End Procs
; End of source.